package ink.onei.system.mapper;

import java.util.List;

import ink.onei.common.core.domain.entity.SysUser;
import ink.onei.system.domain.PrivateLetter;

/**
 * 私信Mapper接口
 *
 * @author zheng
 * @date 2024-02-15
 */
public interface PrivateLetterMapper {
    /**
     * 查询私信
     *
     * @param id 私信主键
     * @return 私信
     */
    public PrivateLetter selectPrivateLetterById(Long id);

    /**
     * look私信
     *
     * @param id 私信主键
     * @return 私信
     */
    public PrivateLetter selectLetterLookById(Long id);

    /**
     * 查询私信列表
     *
     * @param privateLetter 私信
     * @return 私信集合
     */
    public List<PrivateLetter> selectPrivateLetterList(PrivateLetter privateLetter);

    /**
     * 新增私信
     *
     * @param privateLetter 私信
     * @return 结果
     */
    public int insertPrivateLetter(PrivateLetter privateLetter);

    /**
     * 修改私信
     *
     * @param privateLetter 私信
     * @return 结果
     */
    public int updatePrivateLetter(PrivateLetter privateLetter);

    /**
     * 删除私信
     *
     * @param id 私信主键
     * @return 结果
     */
    public int deletePrivateLetterById(Long id);

    /**
     * 批量删除私信
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePrivateLetterByIds(Long[] ids);

    List<SysUser> selectUserLists();

    /*修改状态*/
    public int updatestatus( PrivateLetter privateLetter);

}
